<form name="customer-follow" action="<?=url('customer/follow/' . $customer->customer_id)?>" method="post" enctype="multipart/form-data" class="form-horizontal form-row-seperated validator-dialog form-ajax">
    <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true"></button>
        <h4 class="modal-title">
            <i class="fa fa-phone"></i>
            <?=__('Customer Follow-up')?>
        </h4>
    </div>
    <div class="modal-body form">
        <div class="form-body">
            <div class="form-group">
                <label class="col-sm-3 control-label">
                    <?=__('Nickname')?>
                </label>
                <div class="col-sm-9">
                    <p class="form-control-static"><?=$customer->nickname?></p>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">
                    <span class="required">*</span>
                    <?=__('Customer Type')?>
                </label>
                <div class="col-sm-9">
                    <select name="type_id" class="form-control input-medium" data-min="1,<?=__('Please select customer type')?>">
                        <option value="0"><?=__('Select...')?></option>
                        <? foreach ($types as $t): ?>
                        <option value="<?=$t['type_id']?>" <?=on($customer->type_id == $t['type_id'], 'selected')?>>
                            <?=OaCustomerTypes::getName($t['type_id'])?>
                        </option>
                        <? endforeach; ?>
                    </select>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">
                    <span class="required">*</span>
                    <?=__('Communication')?>
                </label>
                <div class="col-sm-9">
                    <label class="checkbox-inline">
                        <input type="checkbox" name="follow_mode[]" value="tel" />
                        <?=__('Telephone')?>
                    </label>
                    <label class="checkbox-inline">
                        <input type="checkbox" name="follow_mode[]" value="qq" />
                        QQ
                    </label>
                    <label class="checkbox-inline">
                        <input type="checkbox" name="follow_mode[]" value="msn" />
                        MSN
                    </label>
                    <label class="checkbox-inline">
                        <input type="checkbox" name="follow_mode[]" value="email" />
                        Email
                    </label>
                    <label class="checkbox-inline">
                        <input type="checkbox" name="follow_mode[]" value="backend" />
                        <?=__('Backend')?>
                    </label>
                    <label class="checkbox-inline">
                        <input type="checkbox" name="follow_mode[]" value="skype" />
                        Skype
                    </label>
                    <label class="checkbox-inline">
                        <input type="checkbox" name="follow_mode[]" value="other" />
                        <?=__('Other')?>
                    </label>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">
                    <span class="required">*</span>
                    <?=__('Follow-up Result')?>
                </label>
                <div class="col-sm-9">
                    <textarea name="description" class="form-control"></textarea>
                </div>
            </div>
            <div class="form-group last">
                <label class="col-sm-3 control-label">
                    <?=__('Screenshot')?>
                </label>
                <div class="col-sm-9">
                    <input type="file" name="screenshot" accept="image/jpeg,image/gif,image/bmp,image/png" />
                </div>
            </div>
        </div>
    </div>
    <div class="modal-footer">
        <button type="submit" class="btn btn-primary">
            <i class="fa fa-check"></i>
            <?=__('Submit')?>
        </button>
        <button type="button" class="btn btn-default" data-dismiss="modal">
            <i class="fa fa-times"></i>
            <?=__('Close')?>
        </button>
    </div>
</form>
